<template>
  <div>
  </div>
</template>

<script>
    import axios from "axios";

    export default {
        name: "pay",
        data(){
          return{
            payTemp:{}
          }
        },
        methods:{

        },
      mounted() {
        this.payTemp.userName = this.$route.params.name
        this.payTemp.num = this.$route.params.num;
        this.payTemp.price = this.$route.params.price;
        this.payTemp.game = this.$route.params.game;
        axios.post("/uban/pay",this.payTemp).then(res=>{
          this.datae = res.data
          const div = document.createElement('div') // 创建div
          div.innerHTML = res.data // 将返回的form 放入div
          document.body.appendChild(div)
          document.forms[0].submit()
        })

      }
    }

</script>

<style scoped>

</style>
